class AddPractiseToRegistrationCourse < ActiveRecord::Migration
  def self.up
    add_column :registration_courses, :practise, :float
    add_column :exam_schedules, :teacher_id, :integer
    add_column :exam_schedules, :practise_flag, :boolean, :default => false
    add_column :exam_schedules, :practise_percent, :float
  end

  def self.down
    remove_column :registration_courses, :practise
    remove_column :exam_schedules, :teacher_id
    remove_column :exam_schedules, :practise_flag
    remove_column :exam_schedules, :practise_percent
  end
end
